---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a10.log
  log type:  text
 opened on:  11 Jun 2020, 13:46:53

. 
. *** Trump-specific effects with no county population weights
. 
. use "$path/foreclosures_analysis.dta", clear

. 
. gen trump = year == 2016

. gen fore_trump = foreclosure_rate*trump

. gen competitive = norm_vote > 0.4 & norm_vote < 0.6

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate fore_trump trump, a(fips sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,369
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(3)      =      68.37
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9692
                                                Adj R-squared     =     0.9557
                                                Root MSE          =     3.1509

                                    (Replications based on 2,671 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.3258535   .0426728    -7.64   0.000    -.4094905   -.2422164
      fore_trump |  -.3220396   .1010266    -3.19   0.001    -.5200481   -.1240312
           trump |   84949.38   428258.4     0.20   0.843    -754421.6    924320.4
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            2671           2671 *   | 
              sy |          195             196              1     | 
-------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b1 = _b[foreclosure_rate]

. local se1 = _se[foreclosure_rate]

. local bint1 = _b[fore_trump]

. local seint1 = _se[fore_trump]

. local n1 = e(N)

. local nclust1 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate fore_trump trump, a(fips popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................x...............   150
.............x............x.x................x....   200
..........................................x.......   250
.................x.............x..................   300
..x..................x............................   350
..................................................   400
..................x............................x..   450
........x........x.........................x......   500
....x..x..........................................   550
.x..x.........x..x....................x...........   600
.......x.................xx.......................   650
................................x.................   700
..................................................   750
..............x...................................   800
..............................x....x..............   850
..................................................   900
....x.................x...........................   950
....................x.............................  1000

HDFE Linear regression                          Number of obs     =      9,373
Absorbing 2 HDFE groups                         Replications      =        968
                                                Wald chi2(3)      =      11.06
                                                Prob > chi2       =     0.0114
                                                R-squared         =     0.9558
                                                Adj R-squared     =     0.9378
                                                Root MSE          =     3.7433

                                    (Replications based on 2,672 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.1288742   .0414968    -3.11   0.002    -.2102063    -.047542
      fore_trump |  -.1557388   .0891239    -1.75   0.081    -.3304185    .0189408
           trump |   25797.87   470156.9     0.05   0.956    -895692.8    947288.5
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            2672           2672 *   | 
         popyear |           39              40              1     | 
-------------------------------------------------------------------+
* = fixed effect nested within cluster; treated as redundant for DoF computation
Note: One or more parameters could not be estimated in 32 bootstrap replicates;
      standard-error estimates include only complete replications.

. local b2 = _b[foreclosure_rate]

. local se2 = _se[foreclosure_rate]

. local bint2 = _b[fore_trump]

. local seint2 = _se[fore_trump]

. local n2 = e(N)

. local nclust2 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate fore_trump trump, a(i.fips##c.year sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,369
Absorbing 2 HDFE groups                         Replications      =      1,000
                                                Wald chi2(3)      =      79.62
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9934
                                                Adj R-squared     =     0.9838
                                                Root MSE          =     1.9032

                                    (Replications based on 2,671 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.2744828   .0429066    -6.40   0.000    -.3585782   -.1903874
      fore_trump |   -.735965   .1004975    -7.32   0.000    -.9329364   -.5389936
           trump |  -34814.99   25109.22    -1.39   0.166    -84028.16    14398.18
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            2671           2671 *   | 
     fips#c.year |         2671            2671              0 ?   | 
              sy |          195             196              1     | 
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation

. local b3 = _b[foreclosure_rate]

. local se3 = _se[foreclosure_rate]

. local bint3 = _b[fore_trump]

. local seint3 = _se[fore_trump]

. local n3 = e(N)

. local nclust3 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs foreclosure_rate fore_trump trump, a(i.fips##c.year popyear) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
......................x...........................   450
..................................................   500
..................................................   550
..................................................   600
...................x..............................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,373
Absorbing 2 HDFE groups                         Replications      =        998
                                                Wald chi2(3)      =      32.82
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9862
                                                Adj R-squared     =     0.9676
                                                Root MSE          =     2.6993

                                    (Replications based on 2,672 clusters in fips)
----------------------------------------------------------------------------------
                 |   Observed   Bootstrap                         Normal-based
         pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
foreclosure_rate |  -.2674489   .0467575    -5.72   0.000    -.3590919   -.1758059
      fore_trump |  -.2328124   .1046512    -2.22   0.026    -.4379249   -.0276998
           trump |   994.3592   66045.12     0.02   0.988    -128451.7    130440.4
----------------------------------------------------------------------------------

Absorbed degrees of freedom:
-------------------------------------------------------------------+
     Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
-----------------+-------------------------------------------------|
            fips |            0            2672           2672 *   | 
     fips#c.year |         2672            2672              0 ?   | 
         popyear |           39              40              1     | 
-------------------------------------------------------------------+
? = number of redundant parameters may be higher
* = fixed effect nested within cluster; treated as redundant for DoF computation
Note: One or more parameters could not be estimated in 2 bootstrap replicates;
      standard-error estimates include only complete replications.

. local b4 = _b[foreclosure_rate]

. local se4 = _se[foreclosure_rate]

. local bint4 = _b[fore_trump]

. local seint4 = _se[fore_trump]

. local n4 = e(N)

. local nclust4 = e(N_clust)

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a10.log
  log type:  text
 closed on:  11 Jun 2020, 14:04:39
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
